package com.csi.okr.mobile.common.entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 
 */
@Entity
@Table(name = "T_OKR_VALVE", schema = "PSGIS")
public class TOkrValve implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	private TOkrValveId id;

	public TOkrValve() {
	}

	public TOkrValve(TOkrValveId id) {
		this.id = id;
	}

	@EmbeddedId

	@AttributeOverrides({
			@AttributeOverride(name = "OMaxNo", column = @Column(name = "O_MAX_NO", precision = 22, scale = 0)),
			@AttributeOverride(name = "krMaxNo", column = @Column(name = "KR_MAX_NO", precision = 22, scale = 0)) })
	public TOkrValveId getId() {
		return this.id;
	}

	public void setId(TOkrValveId id) {
		this.id = id;
	}

}
